package com.feifan;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication(scanBasePackages = "com.feifan",excludeName = "com.feifan.mapper")
@MapperScan("com.feifan.mapper")
@EnableAspectJAutoProxy
@ServletComponentScan//扫描过滤器，注解方式
@EnableTransactionManagement // 开启事务
@EnableCaching // 开启缓存
public class App
{
    public static void main( String[] args )
    {
        SpringApplication.run(App.class,args);
    }
}
